//
//  JSMDreamCityPrefectureModel.m
//  TakeYouTourTogether
//
//  Created by king on 15/12/1.
//  Copyright © 2015年 king. All rights reserved.
//

#import "JSMDreamCityPrefectureModel.h"

@implementation JSMDreamCityPrefectureModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"id"]) {
        self.vid = value;
    }
}

- (void)encodeWithCoder:(NSCoder *)aCoder {
    [aCoder encodeObject:self.vid forKey:@"vid"];
    [aCoder encodeObject:self.name forKey:@"name"];
    [aCoder encodeObject:self.url forKey:@"url"];
    [aCoder encodeObject:self.is_new forKey:@"is_new"];
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    if (self) {
        self.vid = [aDecoder decodeObjectForKey:@"vid"];
        self.name = [aDecoder decodeObjectForKey:@"name"];
        self.url = [aDecoder decodeObjectForKey:@"url"];
        self.is_new = [aDecoder decodeObjectForKey:@"is_new"];
    }
    return self;
}

@end
